#{extends 'simpleTemplate.html' /}
<title>&{'Users_header'}</title>
#{set title: "User list"/}
<div class="content">
    <div class="content-header">
        <h3>&{'Users'}</h3>
    </div>

    <div class="content-body">
        <ul>
        #{list items: members, as:"member"}
            #{if (member.id == currentMember.id)}
            <li>
                <img  src="" height="100px" width="80px"/>
            <a href="/changeNamePage?oldName=${member.name}">${member.name}</a> <br />
            <a href="/changeEmailPage?oldEmail=${member.email}">${member.email}</a>  <br />
            <a href="/changeLanguagePage?oldLanguage=${member.language}">${member.language}</a>

            </li>
            #{/if}
            #{else}
            <li>
                ${member.name}   <br />
                ${member.email}   <br />
                ${member.language}
            </li>
            #{/else}
        #{/list}
        </ul>

    </div>
</div>